package com.tansun.easycare.rule.datamodel.dao;

import java.util.List;
import java.util.Map;

import com.tansun.easycare.rule.common.dao.RuleBaseDao;
import com.tansun.easycare.rule.datamodel.entity.RuleDatamodel;

/**
 * 规则数据模型DAO接口
 *
 * @author zl
 * @version 2020-02-14
 */

public interface RuleDatamodelDao extends RuleBaseDao<RuleDatamodel> {
//    void deleteDataModelById(Map<String, String> map);
//    List<RuleDataset> getList(RuleDataset dataset);
//    List<RuleDataset> findListByInfo(RuleDataset dataset);
//    List<RuleDataset> queryRuleDataList(RuleDataset dataset);
//    List<RuleDataset> findDatasetList(RuleDataset ruleDataset);
//	void deleteflag(RuleDataset ruleDataset);
	
	
	List<RuleDatamodel> findRuleDatamodelList(RuleDatamodel datamodel);
	void deleteflag(RuleDatamodel datamodel);
	RuleDatamodel getById(String id);
	void buildFirstDefinition(RuleDatamodel dm);
	void buildDataset(RuleDatamodel dm);
	void deleteDefault(RuleDatamodel dm);
	List<RuleDatamodel> findDatamodelListByInfo(RuleDatamodel ruleDatamodel);
	/**
     * 更新关联层级ID（初始化）
     * @param condition
     * @return
     */
    public int updateRankId(RuleDatamodel condition);
    
    /**
     * 根据多个rankRelationID 以及projectCode ，查询数据模型
     * 约定map中的key为rankList,projectCode
     * @param map
     */
    List<RuleDatamodel> findRuleDatamodelListByProRank(Map<String, Object> map);
	
}